package com.touchfired.common.core.publisher;

import com.touchfired.common.core.callback.Callback;
import com.touchfired.common.core.event.BaseEvent;
import org.springframework.lang.Nullable;

/**
 * @author 幸佳俊
 */
public interface Publisher {

    /**
     * 发布事件
     * @param event 指定事件
     * @param callback 事件处理时回调
     */
    void publishEvent(BaseEvent event, @Nullable Callback callback);

}
